package com.some;

import java.util.Scanner;

public class KeDa {

    public int findEwordCount(String string) {
        // write code here
        String[] split = string.trim().split("\\s+");
        int sum = 0;
        for (String s : split) {
            if (s.contains("e")) {
                sum++;
            }
        }
        return sum;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        KeDa keDa = new KeDa();
        System.out.println(keDa.findEwordCount(sc.next()));
    }

}
